package handler

import (
	"context"
	"google.golang.org/protobuf/types/known/emptypb"
	pb "goods-srv/gen/health"
)

type healthServer struct {
	pb.UnimplementedHealthServer
}

func (s *healthServer) Index(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
	return new(emptypb.Empty), nil
}

func NewHealthServer() pb.HealthServer {
	return &healthServer{}
}
